var ajax = () => {
	return new Promise((resove, reject) => {
		setTimeout(() => {
			// resove({
			// 	state: 'success'
			// });
			throw new Error('abcd');
			console.log(6666);
			reject({
				state: 'error'
			});
		}, 2000);
	});
}

ajax().then((result) => {
	result.a = 'aaaa';
	return result;
}).then((result) => {
	result.abc = 'abc';
	return result;
}).then((result) => {
	console.log('success', result);
}, (result) => {
	console.log('error', result);
}).catch((err) => {
	console.log('catch', err);
});